﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="SearchStock.aspx.cs" Inherits="SMS.Stocks.SearchStock" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserHeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Search 2.png" class="img" />
            بحث</h2>
        <div dir="rtl" class="content">
            <table dir="rtl">
                <tr>
                    <td align="right">
                        <asp:Label Text="الإسم:" runat="server" />
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label1" Text="النوع:" runat="server" />
                    </td>
                    <td align="right">
                        <asp:DropDownList Width="100%" runat="server" ID="drpStockType" OnSelectedIndexChanged="drpStockType_SelectedIndexChanged">
                            <asp:ListItem Text="أي نوع" />
                            <asp:ListItem Text="محل"></asp:ListItem>
                            <asp:ListItem Text="مخزن"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left">
                        <asp:Button ID="btnSearch" Text="بحث" CssClass="checkoutbutton" runat="server" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <table width="100%">
                <tr>
                    <td align="right">
                        <asp:GridView ID="GridView1" CssClass="Grid" DataKeyNames="ID"  PagerStyle-CssClass="Pager"
                            HeaderStyle-Wrap="true" PageIndex="0" PagerSettings-Mode="NumericFirstLast"
                            AllowPaging="true" PageSize="5" runat="server" AutoGenerateColumns="False" Width="90%"
                            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowDeleting="GridView1_RowDeleting"
                            OnRowDataBound="GridView1_RowDataBound" 
                            onpageindexchanging="GridView1_PageIndexChanging">
                            <PagerStyle HorizontalAlign="Center" />

                            <Columns>
                                <asp:BoundField DataField="ID" HeaderText="#" />
                                <asp:BoundField DataField="Name" HeaderText="الإسم" />
                                <asp:BoundField HeaderText="النوع" />
                                <asp:BoundField DataField="Address" HeaderText="العنوان" />
                                <asp:BoundField DataField="Mobile" HeaderText="الموبيل" />
                                <asp:CommandField ShowSelectButton="true" SelectText="تحديث" />
                                <asp:TemplateField HeaderText="مسح" HeaderStyle-Width="20px" ItemStyle-Width="20px">
                                    <ItemTemplate>
                                        <asp:ImageButton ImageUrl="../App_Themes/Theme/images/Error.png" Width="15px" Height="15px"
                                            CommandName="Delete" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                              لا يوجد نتائج
                            </EmptyDataTemplate>
                            <EmptyDataRowStyle HorizontalAlign="Justify" Width="100%" />
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
